import { createApp } from "vue"
import "@/styles/global.scss"
import App from "./App.vue"
import ElementPlus from "element-plus"
import "element-plus/dist/index.css"
import router from "@/router/index"
import zhCn from "element-plus/dist/locale/zh-cn.mjs"
import * as ElementPlusIconsVue from "@element-plus/icons-vue"
import echarts from '@/utils/echarts'
// import 'default-passive-events';
const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.config.globalProperties.$echarts = echarts;//vue3的挂载方式

app.use(ElementPlus, {
  locale: zhCn,
})
app.use(router)
app.mount("#app")
